import React,{Component} from 'react';

class ImgView extends Component{
    constructor(){
        super()

    }

    onComclick(){
        this.props.onClick()
    }

    render(){
        if (this.props.show){
            return (<div className="com-imgview" onClick={this.onComclick.bind(this)}>
                <img src={this.props.src} />
            </div>)
        }else{
            return null
        }
    }
}

export default ImgView